<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<!-- 新 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="Public/Home/bootstrap/css/bootstrap.min.css">
        <script src="Public/Home/js/jquery-1.8.3.min.js"></script>
        <script src="Public/Home/bootstrap/js/bootstrap.min.js"></script>
            
		<link rel="stylesheet" href="Public/Home/less/icon/iconfont.css" />      
		<link rel="stylesheet" href="Public/Home/less/shoping.css" />
	    <script type="text/javascript">
			var ajaxurl="<?php echo U('Cart/changeNum')?>";
			var delurl="<?php echo U('Cart/delNum')?>";
//		</script>	
		<script src="Public/Home/js/cart.js"></script>
	</head>
	<body>
		<div id="top_wrap">
			<div class='wrap'>
			<a href="" class="index_wrap"><i class="icon iconfont">&#xe61e;</i>美丽说首页</a>
			<ul>
				<li><a href="" ><i class="icon iconfont">&#xe649;</i>客服服务</a></li>
				<li><a href=""><i class="icon iconfont">&#xe604;</i>我的订单</a></li>
				<li><a href=""><i class="icon iconfont">&#xe601;</i>购物车</a></li>
				<li><a href="">注册</a></li>
				<li><a href="">登录</a></li>
			</ul>
			</div>
		</div>
	<div id='bb_all'>
		<div id="search_box">
		  <div id="search">
			<img src="Public/Home/img/logo.png" class="logo" />
            <div>
                <img src="Public/Home/img/prosecss.png" alt="" />
            </div>
		   </div>
		</div>
   		<?php if(!empty($_SESSION['goods'])){?>
                
		<div class='no_goods'>
			<p>您的购物车还是空的，赶快去挑选商品吧！</p>
			<p>去看看大家都喜欢的前往<a href="<?php echo U('Index/index')?>">首页</a></p>	
		</div>
		<?php }else{?>
		<div id="shop_info">
			<form action="<?php echo U('Confirm/index')?>" method="post">
			<!--<form action="" id='all_choose'>-->
			<a href="" class="shop_nom">全部商品(<b><?php echo $cartData['total_rows']?></b>)</a>
			<div>
			  <ul>
				<li class='choose'><input  class="checkAll" type="checkbox" value="" />全选</li>
				<li class='shop_name'>商品</li>
				<li>商品信息</li>
				<li>单价(元)</li>
				<li>数量</li>
				<li>小计(元)</li>
				<li>操作</li>
			  </ul>
			  <?php foreach ($cartData['goods'] as $k=>$v){?>
			  <ul class='shop_name_info'>
				<!--<li class='choose'><input name="all" type="checkbox"class="checkOne" value="<?php echo $k?>" /></li>-->
				<li class='choose'><input type="checkbox" class="checkOne" name="glid[]" id="" value="<?php echo $k?>" /></li>
				<li class='shop_name_p'>
					<img src="<?php echo $v['options']['listImg']?>" alt="" style="width: 100px;height: 100px;"/>
					<span class='p_name'><?php echo $v['name']?></span>
				</li>
				<li class='shop'>
					<span>颜色:<?php echo $v['options']['color']?></span>
					<span>尺码：<?php echo $v['options']['size']?></span>
				</li>
				<li>￥<?php echo $v['price']?></li>
				<li class='shop_add'>
					<a href="javascript:;" class='min'>-</a>
					<input type="text"  class='input show_nom' placeholder="1" value="<?php echo $v['num']?>"/>
					<a href="javascript:;" class='add'>+</a>

				</li>
				<li class='a_price'>￥<?php echo $v['total']?></li>
				<li class='delcom'>删除</li>
			  </ul>
			  <?php }?>
			   <div class="shop_re">
			   <!--<a href="<?php echo U('Confirm/index')?>">去付款>></a>-->
				<input type="submit" name="" id="" value="去付款>>" class='tj'/>
			   
			    <p><span>共有<i class='total_rows'><?php echo $cartData['total_rows']?></i>件商品</span><b class='t_price'>￥<?php echo $cartData['total']?></b></p>
			   </div>	
			</div>
			</form>  
		</div>
		
               <?php }?>
		<p id="wrep_fooler">美丽说 © 2016 Meilishuo.com,All Rights Reserved.</p>
	</div>	
</body>
<script>
</html>
